$("#close").click(function(){
	$("#top1").css("display","none")
	$("#close").css("display","none")
})
$("#firsttop").css("background","#333333")
$("#firsttop>div").css("font-size","10px")
$("#firsttop>div").css("line-height","28.4px")
$("a:eq(10)").css("color","#d9c398")
$("#aaaa").css("height","186px" )
$("#aaaa").css("width","220px")
$("#erweima1").css("height","72px" )
$("#erweima1").css("width","185px")
$("#aaaa1").css("height","172px" )
$("#aaaa1").css("width","220px")
//订单下的二维码动画样式
$("#cccc").mouseover(function(){
	$("#aaaa").stop().slideDown(100)
	$("#cccc ul li").stop().slideDown(100)
	
	
})
$("#cccc").mouseout(function(){
	$("#aaaa").stop().slideUp(100)
$("#cccc ul li").stop().slideUp(100)
	
})

$("#cccc1").mouseover(function(){
	$("#aaaa1").stop().slideDown(100)
	$("#erweima1").stop().slideDown(100)

})
$("#cccc1").mouseout(function(){
	$("#aaaa1").stop().slideUp(100)
$("#erweima1").stop().slideUp(100)
})
//li动画效果
$("li:eq(4)").mouseover(function(){
	$("li:eq(4)").css("background","#332E2E")
	$("img:eq(1)").css("display","none")
	$("img:eq(0)").css("display","block")
})
$("li:eq(4)").mouseout(function(){
	$("li:eq(4)").css("background","#EBEBEB")
})
$("li:eq(5)").mouseover(function(){
	$("li:eq(5)").css("background","#332E2E")	
$("img:eq(0)").css("display","none")
$("img:eq(1)").css("display","block")
})
$("li:eq(5)").mouseout(function(){
	$("li:eq(5)").css("background","#EBEBEB")
})
//万表log下的input


//轮播图导航 打下拉菜单
$(".title1>h2:eq(0)").mouseover(function(){
	$("#xuanbiao").stop().slideDown(100)
	$("#zhegai").css("display","block")
})
$("#xuanbiao").mouseout(function(){
	$("#xuanbiao").stop().slideUp(100)
	$("#zhegai").css("display","none")
})
//轮播图

//拉列表切换
$("dl:eq(0)").mouseover(function(){
	$("#zhegai").css("display","block")
})
$("dl:eq(0)").mouseout(function(){
	$("#zhegai").css("display","none")
})
$("dl:eq(1)").mouseover(function(){
	$("#zhegai").css("display","block")
})
$("dl:eq(1)").mouseout(function(){
	$("#zhegai").css("display","none")
})
$("dl:eq(2)").mouseover(function(){
	$("#zhegai").css("display","block")
})
$("dl:eq(2)").mouseout(function(){
	$("#zhegai").css("display","none")
})
$("dl:eq(3)").mouseover(function(){
	$("#zhegai").css("display","block")
})
$("dl:eq(3)").mouseout(function(){
	$("#zhegai").css("display","none")
})
$("dl:eq(4)").mouseover(function(){
	$("#zhegai").css("display","block")
})
$("dl:eq(4)").mouseout(function(){
	$("#zhegai").css("display","none")
})
$("#dl1").mouseover(function(){
	$("#bigdiv1").css("display","block")
	$("#dl1").css("background","white")
	$("#dl1").css("color","black")
})
$("#dl1").mouseout(function(){
	$("#bigdiv1").css("display","none")
	$("#dl1").css("background","")
	$("#dl1").css("color","white")
})
$("#dl2").mouseover(function(){
	$("#bigdiv2").css("display","block")
	$("#dl2").css("background","white")
	$("#dl2").css("color","black")
})
$("#dl2").mouseout(function(){
	$("#bigdiv2").css("display","none")
	$("#dl2").css("background","")
	$("#dl2").css("color","white")
})
$("#dl3").mouseover(function(){
	$("#bigdiv3").css("display","block")
	$("#dl3").css("background","white")
	$("#dl3").css("color","black")
})
$("#dl3").mouseout(function(){
	$("#bigdiv3").css("display","none")
	$("#dl3").css("background","")
	$("#dl3").css("color","white")
})
$("#dl4").mouseover(function(){
	$("#bigdiv4").css("display","block")
	$("#dl4").css("background","white")
	$("#dl4").css("color","black")
})
$("#dl4").mouseout(function(){
	$("#bigdiv4").css("display","none")
	$("#dl4").css("background","")
	$("#dl4").css("color","white")
})
$("#dl5").mouseover(function(){
	$("#bigdiv5").css("display","block")
	$("#dl5").css("background","white")
	$("#dl5").css("color","black")
})
$("#dl5").mouseout(function(){
	$("#bigdiv5").css("display","none")
	$("#dl5").css("background","")
	$("#dl5").css("color","white")
})
//图片放大效果
$("#img11").mouseover(function(){
	$("#img11>img").stop().animate({
		"width":300,
		"hieght":160,
		"top":-5,
		"left":-10,
		
	})
}),$("#img11").mouseout(function(){
	$("#img11>img").stop().animate({
		"width":290,
		"hieght":140,
		"top":0,
		"left":0,
		
	})
})
$("#img22").mouseover(function(){
	$("#img22>img").stop().animate({
		"width":300,
		"hieght":160,
		"top":-5,
		"left":-10,
		
	})
}),$("#img22").mouseout(function(){
	$("#img22>img").stop().animate({
		"width":290,
		"hieght":140,
		"top":0,
		"left":0,
		
	})
})
$("#img33").mouseover(function(){
	$("#img33>img").stop().animate({
		"width":300,
		"hieght":160,
		"top":-5,
		"left":-10,
		
	})
}),$("#img33").mouseout(function(){
	$("#img33>img").stop().animate({
		"width":290,
		"hieght":140,
		"top":0,
		"left":0,
		
	})
})
$("#img44").mouseover(function(){
	$("#img44>img").stop().animate({
		"width":300,
		"hieght":160,
		"top":-5,
		"left":-10,
		
	})
}),$("#img44").mouseout(function(){
	$("#img44>img").stop().animate({
		"width":290,
		"hieght":140,
		"top":0,
		"left":0,
		
	})
})
//热销
//热销主体附带轮播
//热销2下的图片放大2
$("#faguo").mouseover(function(){
	$("#faguo").stop().animate({
		"width":255,
		"height":255,
		"top":-10,
		"left":0
	},1000)
})
$("#faguo").mouseout(function(){
	$("#faguo").stop().animate({
		"width":240,
		"height":240,
		"top":0,
		"left":-0
	},1000)
})
$("#faguo1").mouseover(function(){
	$("#faguo11").stop().animate({
		"width":255,
		"height":255,
		"top":-10,
		"left":0
	},1000)
})
$("#faguo11").mouseout(function(){
	$("#faguo11").stop().animate({
		"width":240,
		"height":240,
		"top":0,
		"left":-0
	},1000)
})

$("#faguo22").mouseover(function(){
	$("#faguo22").stop().animate({
		"width":255,
		"height":255,
		"top":-10,
		"left":0
	},1000)
})
$("#faguo22").mouseout(function(){
	$("#faguo22").stop().animate({
		"width":240,
		"height":240,
		"top":0,
		"left":-0
	},1000)
})

var like;
$.ajax({
	type:"get",
	url:"js/shouye.json",
	async:false,
	success:function(likeyou){
		like=likeyou;
	}
})
var likelist=like.list;
$(likelist).each(function(loveindex,love){
	var likediv=$("<div/>");
	$(likediv).appendTo($(".likelist2"));
	$(likediv).css({"float":"left","height":"280px","width":"206px","postion":"relative","position":"relative","padding-left":"25px"})
	var img=$("<img/>")
	img.attr({
		"src":"img/"+love.img,
	})
	$(img).appendTo(likediv)
	$(img).css({"padding-top":"20px","position":"relative"})
	var likespan=$("<span>");
	$(likespan).appendTo(likediv);
	likespan.html(love.pice)
	$(likespan).css({"height":"24px","width":"180px","text-align":"center","display":"block","position":"relative"});
	var likep=$("<p/>");
	likep.html(love.title)
	$(likep).appendTo(likediv)
	$(likep).css({"display":"block","hieght":"24px","width":"180px","text-align":"center","color":"red","position":"relative"})

})

//晒单
var shaidan;
$.ajax({
	type:"get",// 传输方式
	url:"js/shaidan.json",//路径
	async:false,//同步异步
	success:function(sun){//获取成功
		shaidan=sun;
	}
})
var shai=shaidan.list;
$(shai).each(function(shaiindex,dan){
	var shaidiv=$("<div/>");
	$(shaidiv).appendTo($(".shaidan1"));
	
	var shaidiv1=$("<div/>");
	$(shaidiv1).appendTo(shaidiv);
	$(shaidiv1).css({"float":"left","height":"280px","width":"300px","postion":"relative","overflow":"hidden"})
	$(shaidiv).css({"float":"left","height":"342px","width":"300px"})
	var imgshai=$("<img/>")
	imgshai.attr({
		"src":"img/"+dan.img,
	})
	$(imgshai).appendTo(shaidiv1)
	$(imgshai).css({"padding-top":"20px","padding-left":"5px","background-size":"cover","height":"280px","width":"300px","postion":"absolute"})
	var shaispan=$("<span>");
	$(shaispan).appendTo(shaidiv);
	shaispan.html(dan.pice)
	$(shaispan).css({"height":"24px","width":"300px","text-align":"center","display":"block"});

	$(imgshai[0]).mouseover(function(){
		$(imgshai[0]).stop().animate({
			"width":320,
			"height":300,
			"top":0,
			"left":-10,
		},800)
	})
		$(imgshai[0]).mouseout(function(){
		$(imgshai[0]).stop().animate({
			"width":300,
			"height":280,"top":0,"left":0
		},800)
	})
})
//更换二维码
$("#bdivma11>ul>li:eq(0)").mouseover(function(){
	$("#imgw").css("display","block")
	$("#bdivma11>ul>li:eq(0)").css("background","#888888")
	$("#imgweixin").css("display","none")
	$("#bdivma1111>p:eq(0)").css("display","block")
	$("#bdivma1111>p:eq(1)").css("display","none")
})
$("#bdivma11>ul>li:eq(0)").mouseout(function(){
	$("#bdivma11>ul>li:eq(0)").css("background","#ccbeb8")
})
$("#bdivma11>ul>li:eq(1)").mouseover(function(){
	$("#imgweixin").css("display","block")
	$("#bdivma11>ul>li:eq(1)").css("background","#888888")
		$("#bdivma1111>p:eq(0)").css("display","none")
		$("#bdivma1111>p:eq(1)").css("display","block")
$("#bdivma11>ul>li:eq(1)").mouseout(function(){
	$("#bdivma11>ul>li:eq(1)").css("background","#ccbeb8")
})
})
//更换2
$("#bdivma22>ul>li:eq(0)").mouseover(function(){
	$("#imgw1").css("display","block")
	$("#bdivma22>ul>li:eq(0)").css("background","#888888")
	$("#imgweixin1").css("display","none")
	$("#bdivma2222>p:eq(0)").css("display","block")
	$("#bdivma2222>p:eq(1)").css("display","none")
})
$("#bdivma22>ul>li:eq(0)").mouseout(function(){
	$("#bdivma22>ul>li:eq(0)").css("background","#ccbeb8")
})
$("#bdivma22>ul>li:eq(1)").mouseover(function(){
	$("#imgweixin1").css("display","block")
	$("#bdivma22>ul>li:eq(1)").css("background","#888888")
		$("#bdivma2222>p:eq(0)").css("display","none")
		$("#bdivma2222>p:eq(1)").css("display","block")
$("#bdivma22>ul>li:eq(1)").mouseout(function(){
	$("#bdivma22>ul>li:eq(1)").css("background","#ccbeb8")
})
})
$("#yanse1").mouseover(function(){
	$("#kuai").stop().fadeIn();
})
$("#yanse1").mouseout(function(){
	$("#kuai").stop().fadeOut();
})
$("#yanse2").mouseover(function(){
	$("#kuai1").stop().fadeIn();
})
$("#yanse2").mouseout(function(){
	$("#kuai1").stop().fadeOut();
})
$("#yanse3").mouseover(function(){
	$("#kuai2").stop().fadeIn();
})
$("#yanse3").mouseout(function(){
	$("#kuai2").stop().fadeOut();
})
$(".yanse4").mouseover(function(){
	$("#kuai3").stop().fadeIn();
})
$(".yanse4").mouseout(function(){
	$("#kuai3").stop().fadeOut();
})



var str=getCookie("coo");
cook2.onclick=function(){
	cook3.style.display="none"
cook1.innerHTML=str+"&nbsp;&nbsp;&nbsp;"+"<a onclick='exit()'>退出</a>";

}
function exit(){
		cook3.style.display="block"
		cook1.innerHTML="";			
			
		}